package com.beifu.manager.dao;

import com.beifu.manager.model.Module;
import com.beifu.manager.model.UserInfo;
import com.beifu.manager.model.UserInfoExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface UserInfoMapper {
    int countByExample(UserInfoExample example);

    int deleteByExample(UserInfoExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    List<UserInfo> selectByExample(UserInfoExample example);

    UserInfo selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") UserInfo record, @Param("example") UserInfoExample example);

    int updateByExample(@Param("record") UserInfo record, @Param("example") UserInfoExample example);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    List<UserInfo> selectUserAndOrganize();

    int batchDelUser(String[] ids);

    List<UserInfo> getUserPages(@Param("start") int start, @Param("pageNum") int pageNum,  @Param("example")UserInfoExample example);
}